import request from '@/utils/request'

// 缺陷年度走势
export function defectYearTrend(query) {
  return request({
    url: '/cms/defectInfo/defectYearTrend',
    method: 'POST',
    data: query
  })
}

// 缺陷按年度堆积-柱状图
export function defectTypeBarAnalyse(query) {
  return request({
    url: '/cms/defectInfo/defectTypeBarAnalyse',
    method: 'POST',
    data: query
  })
}

// 缺陷类型百分比-百分比图
export function defectTypePercent(query) {
  return request({
    url: '/cms/defectInfo/defectTypePercent',
    method: 'POST',
    data: query
  })
}
